home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWRunTyp / FWClaImp.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.4 KB  |  63 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWClaImp.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWCLAIMP_H
  11. #define FWCLAIMP_H
  12.  
  13. #ifndef FWBLDDEF_H
  14. #include "FWBldDef.h"
  15. #endif
  16.  
  17. #ifndef FWSTDDEF_H
  18. #include "FWStdDef.h"
  19. #endif
  20.  
  21. #ifndef SLPRIDEB_H
  22. #include "SLPriDeb.h"
  23. #endif
  24.  
  25. #if defined(FW_BUILD_MAC) && !defined(__TYPES__)
  26. #include <Types.h>
  27. #endif
  28.  
  29. #include <stddef.h>
  30.  
  31. //========================================================================================
  32. // CLASS FW_SClassInfo
  33. //========================================================================================
  34.  
  35. FW_EXTERN_C_BEGIN
  36.  
  37. struct FW_SClassInfo;
  38. typedef const FW_SClassInfo *FW_SClassInfoPtr;
  39.  
  40. struct FW_SClassInfo
  41. {
  42.     const char *fClassName;
  43.         // Name of the class
  44.  
  45.     size_t fInstanceSize;
  46.         // Size of instances of the class
  47.         
  48.     FW_SClassInfoPtr const * fAncestors;
  49.         // ClassInfo for ancestors of the class.
  50.         // Pointer to array of const pointers to const FW_SClassInfo
  51.     
  52.     const size_t *fAncestorOffsets;
  53. };
  54.  
  55. void* FW_PrivDynamicCast(const void* p, 
  56.                         FW_SClassInfoPtr fromDynamicClass, 
  57.                         FW_SClassInfoPtr fromStaticClass, 
  58.                         FW_SClassInfoPtr toStaticClass);
  59.  
  60. FW_EXTERN_C_END
  61.  
  62. #endif
  63.